#ifndef ONLINELOGINFORM_H
#define ONLINELOGINFORM_H

#include <QtGui>
#include <QtSql>
#include "rt.h"

namespace Ui {
class OnlineLoginForm;
}

class OnlineLoginForm : public QDialog
{
    Q_OBJECT
    
public:
    explicit OnlineLoginForm(QWidget *parent = 0);
    ~OnlineLoginForm();
    
private slots:
    void login_success();
    void login_failed();
    void on_test_pushButton_clicked();
    void on_save_pushButton_clicked();
    void on_cancel_pushButton_clicked();

private:
    Ui::OnlineLoginForm *ui;
    QSqlDatabase db;
    OnlineConnector *oc;
};

#endif // ONLINELOGINFORM_H
